import { request } from '../utils'
import {APIServer} from '../utils/config'

export async function query (params) {
  return request(APIServer + 'dockingwork_device_service?limit=50&offset=0', {
    method : 'get',
    params
  })
}

export async function create (params) {

  return request(APIServer + 'dockingwork_device_service', {
    method: 'post',
    data: params
  })
}

export async function remove (params) {
  const del = APIServer + 'dockingwork_device_service/' + params.id;
  return request(del, {
    method: 'delete',
    data: params
  })
}

export async function update (params) {
  const update = APIServer + 'dockingwork_device_service/' + params.id;
  return request(update, {
    method: 'put',
    data: params
  })
}
